<div class="common">
    <div class="tool">
        <button type="button" class="btn btn-default" ng-click="showModal()">新增数据</button>
    </div>
    <table class="table table-bordered table-responsive table-striped" ng-if="currentState=='subject'">
        <thead>
            <tr>
                <th>ID</th>
                <th>分类名称</th>
                <th>创建时间</th>
                <th>编辑</th>
                <th>删除</th>
            </tr>
        </thead>
        <tbody class="table-striped">
            <tr ng-repeat="item in data.list" >
                <td>{{$index+1}}</td>
                <td>{{item.ename}}</td>
                <td>{{item.createTime}}</td>
                <td class="text-center">
                    <a href="" ng-click="editData(item)">
                        <span class="text-warning glyphicon glyphicon-pencil"></span>
                    </a>
                </td>
                <td class="text-center">
                    <a href="" ng-click="deleteData(item.id)">
                        <span class="text-danger glyphicon glyphicon-remove"></span>
                    </a>
                </td>
            </tr>
        </tbody>
    </table>
    <table class="table table-bordered table-responsive table-striped" ng-if="currentState=='category'">
        <thead>
            <tr>
                <th>ID</th>
                <th>专业类别</th>
                <th>学科门类</th>
                <th>创建时间</th>
                <th>编辑</th>
                <th>删除</th>
            </tr>
        </thead>
        <tbody class="table-striped">
            <tr ng-repeat="item in data.list" >
                <td>{{$index+1}}</td>
                <td>{{item.ename}}</td>
                <td>{{item.sname}}</td>
                <td>{{item.createTime}}</td>
                <td class="text-center">
                    <a href="" ng-click="editData(item)">
                        <span class="text-warning glyphicon glyphicon-pencil"></span>
                    </a>
                </td>
                <td class="text-center">
                    <a href="" ng-click="deleteData(item.id)">
                        <span class="text-danger glyphicon glyphicon-remove"></span>
                    </a>
                </td>
            </tr>
        </tbody>
    </table>
     <table class="table table-bordered table-responsive table-striped" ng-if="currentState=='major'">
        <thead>
            <tr>
                <th>ID</th>
                <th>专业名称</th>
                <th>专业类别</th>
                <th>学科门类</th>
                <th>创建时间</th>
                <th>编辑</th>
                <th>删除</th>
            </tr>
        </thead>
        <tbody class="table-striped">
            <tr ng-repeat="item in data.list" >
                <td>{{$index+1}}</td>
                <td>{{item.ename}}</td>
                <td>{{item.dname}}</td>
                <td>{{item.sname}}</td>
                <td>{{item.createTime}}</td>
                <td class="text-center">
                    <a href="" ng-click="editData(item)">
                        <span class="text-warning glyphicon glyphicon-pencil"></span>
                    </a>
                </td>
                <td class="text-center">
                    <a href="" ng-click="deleteData(item.id)">
                        <span class="text-danger glyphicon glyphicon-remove"></span>
                    </a>
                </td>
            </tr>
        </tbody>
    </table>
    <modal-directive data="modalData" status="{{status}}"  type="{{type}}" url="{{url}}"></modal-directive>
    <pagination-directive></pagination-directive>
</div>

